﻿package java_45;

public class Test5 {
	public static void main(String[] args) {
		InkBox inkbox=null;
		Paper paper=null;
		Printer printer=new Printer();
		inkBox=new GrayInkBox();
		paper=new A4Paper();
		pringte.setInkBox(inkBox);
		printer.setPaper(paper);
		printer.paper();
		inlBox=new ColorInkBox();
		paper=new B5Paper();
		pringte.setInkBox(inkBox);
		printer.setPaper(paper);
		printer.paper();
		paper=new A4Paper();
		printer.setPaper(paper);
		printer.paper();
		
	}
}
